layui.use(function() {
    const {layer, carousel, laydate, jquery: $} = layui;
    // 渲染 - 图片轮播
    carousel.render({
        elem: '#index-carousel-image',
        width: "100%",
        height: "340px",
        interval: 3000
    });





    $(function(){
        // 百度地图API功能
        var map = new BMapGL.Map('l-map');
        map.centerAndZoom(new BMapGL.Point(116.302175,39.913719), 15);
        map.enableScrollWheelZoom(true);
        // 创建点标记
        var marker1 = new BMapGL.Marker(new BMapGL.Point(116.302175,39.913719));
        // var marker2 = new BMapGL.Marker(new BMapGL.Point(116.404, 39.915));
        // var marker3 = new BMapGL.Marker(new BMapGL.Point(116.395, 39.935));
        // var marker4 = new BMapGL.Marker(new BMapGL.Point(116.415, 39.931));
        // 在地图上添加点标记
        map.addOverlay(marker1);
        // map.addOverlay(marker2);
        // map.addOverlay(marker3);
        // map.addOverlay(marker4);

    })





});